package com.china08.yxyapi.entity.db.live;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntity;

/**
 * 直播课--课程
 * 
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "yxy_live_lesson", catalog = "yxy_live")
public class YxyLiveLesson extends BaseEntity {

	@Column(nullable = false)
	private String catalogSchoolId;// 直播目录对应的学校id

	@Column(nullable = false)
	private String catalogId1;// 一级目录id

	@Column(nullable = false)
	private String catalogId2;// 二级目录id

	@Column
	private String catalogId3;// 三级目录id

	@Column(columnDefinition = "int default 0 comment '0-本校,1-本区域' ")
	private Integer scope = 0;// 开设范围

	@Column(columnDefinition = "int default 0 comment '0-直播加录播,1-直播' ")
	private Integer liveType = 0;

	@Column(nullable = false)
	private String name;// 课程名称

	@Column(nullable = false, columnDefinition = "TEXT")
	private String summary;// 简介

	@Column(nullable = false)
	private String cover;// 封面

	@Column(nullable = false)
	private String teacherId;// 主讲人id

	@Column
	private String teacherMobile;// 教师手机号

	@Column
	private String teacherNick;// 教师名称

	@Column(nullable = false)
	private String teacherSchoolId;// 主讲人学校id

	@Column
	private String teacherSchoolNick;// 主讲人学校名称

	@Column(columnDefinition = "varchar(32) comment '创建者id' ")
	private String createrUserId;

	@Column(columnDefinition = "varchar(32) comment '创建者学校ID' ")
	private String createrUserSchoolId;

	@Column
	private String avator;// 直播者头像

	@Column
	private Integer count;// 总课时

	@Column
	private Date createDate;// 创建时间

	@Column
	private Date upDate;// 上架时间

	@Column(nullable = false)
	private Integer status;// 课程状态0-未开始,1-直播中,2-已结束

	@Column(nullable = false)
	private Integer auditStatus;// 0-待审核,1-审核通过,2-审核拒绝

	@Column
	private String rejectType;// 拒绝分类

	@Column
	private String rejectReason;// 拒绝原因

	@Column
	private Date rejectDate;// 拒绝时间

	@Column
	private String downType;// 下架分类

	@Column
	private String downReason;// 下架原因

	@Column
	private Date downDate;// 下架时间

	@Column(nullable = false)
	private Integer pv=0;// 观看次数

	@Column(nullable = false)
	private Integer vv=0;// 观看人数

	@Column(nullable = false)
	private Integer isVisible=0;// 0-不显示(下架),1-可显示(上架)

	@Column
	private Float ep = 5.0f;// 评分

	@Column
	private Integer epTimes = 0;// 评分次数

	/** 排列序号 */
	@Column(name = "order_num", nullable = false, columnDefinition = "INT(11) DEFAULT 100")
	private Integer orderNum = 20;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getCover() {
		return cover;
	}

	public void setCover(String cover) {
		this.cover = cover;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getRejectReason() {
		return rejectReason;
	}

	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

	public Integer getPv() {
		return pv;
	}

	public void setPv(Integer pv) {
		this.pv = pv;
	}

	public Integer getVv() {
		return vv;
	}

	public void setVv(Integer vv) {
		this.vv = vv;
	}

	public Integer getIsVisible() {
		return isVisible;
	}

	public void setIsVisible(Integer isVisible) {
		this.isVisible = isVisible;
	}

	public Float getEp() {
		return ep;
	}

	public void setEp(Float ep) {
		this.ep = ep;
	}

	public Integer getEpTimes() {
		return epTimes;
	}

	public void setEpTimes(Integer epTimes) {
		this.epTimes = epTimes;
	}

	public Integer getOrderNum() {
		return orderNum;
	}

	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}

	public String getCatalogId1() {
		return catalogId1;
	}

	public void setCatalogId1(String catalogId1) {
		this.catalogId1 = catalogId1;
	}

	public String getCatalogId2() {
		return catalogId2;
	}

	public void setCatalogId2(String catalogId2) {
		this.catalogId2 = catalogId2;
	}

	/**
	 * @return the upDate
	 */
	public Date getUpDate() {
		return upDate;
	}

	/**
	 * @param upDate
	 *            the upDate to set
	 */
	public void setUpDate(Date upDate) {
		this.upDate = upDate;
	}

	/**
	 * @return the downDate
	 */
	public Date getDownDate() {
		return downDate;
	}

	/**
	 * @param downDate
	 *            the downDate to set
	 */
	public void setDownDate(Date downDate) {
		this.downDate = downDate;
	}

	/**
	 * @return the rejectType
	 */
	public String getRejectType() {
		return rejectType;
	}

	/**
	 * @param rejectType
	 *            the rejectType to set
	 */
	public void setRejectType(String rejectType) {
		this.rejectType = rejectType;
	}

	public Date getRejectDate() {
		return rejectDate;
	}

	public void setRejectDate(Date rejectDate) {
		this.rejectDate = rejectDate;
	}

	public String getDownType() {
		return downType;
	}

	public void setDownType(String downType) {
		this.downType = downType;
	}

	public String getDownReason() {
		return downReason;
	}

	public void setDownReason(String downReason) {
		this.downReason = downReason;
	}

	public String getAvator() {
		return avator;
	}

	public void setAvator(String avator) {
		this.avator = avator;
	}

	/**
	 * @return the catalogSchoolId
	 */
	public String getCatalogSchoolId() {
		return catalogSchoolId;
	}

	/**
	 * @param catalogSchoolId
	 *            the catalogSchoolId to set
	 */
	public void setCatalogSchoolId(String catalogSchoolId) {
		this.catalogSchoolId = catalogSchoolId;
	}

	/**
	 * @return the catalogId3
	 */
	public String getCatalogId3() {
		return catalogId3;
	}

	/**
	 * @param catalogId3
	 *            the catalogId3 to set
	 */
	public void setCatalogId3(String catalogId3) {
		this.catalogId3 = catalogId3;
	}

	/**
	 * @return the scope
	 */
	public Integer getScope() {
		return scope;
	}

	/**
	 * @param scope
	 *            the scope to set
	 */
	public void setScope(Integer scope) {
		this.scope = scope;
	}

	/**
	 * @return the liveType
	 */
	public Integer getLiveType() {
		return liveType;
	}

	/**
	 * @param liveType
	 *            the liveType to set
	 */
	public void setLiveType(Integer liveType) {
		this.liveType = liveType;
	}

	/**
	 * @return the teacherId
	 */
	public String getTeacherId() {
		return teacherId;
	}

	/**
	 * @param teacherId
	 *            the teacherId to set
	 */
	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}

	/**
	 * @return the teacherMobile
	 */
	public String getTeacherMobile() {
		return teacherMobile;
	}

	/**
	 * @param teacherMobile
	 *            the teacherMobile to set
	 */
	public void setTeacherMobile(String teacherMobile) {
		this.teacherMobile = teacherMobile;
	}

	/**
	 * @return the teacherNick
	 */
	public String getTeacherNick() {
		return teacherNick;
	}

	/**
	 * @param teacherNick
	 *            the teacherNick to set
	 */
	public void setTeacherNick(String teacherNick) {
		this.teacherNick = teacherNick;
	}

	/**
	 * @return the teacherSchoolId
	 */
	public String getTeacherSchoolId() {
		return teacherSchoolId;
	}

	/**
	 * @param teacherSchoolId
	 *            the teacherSchoolId to set
	 */
	public void setTeacherSchoolId(String teacherSchoolId) {
		this.teacherSchoolId = teacherSchoolId;
	}

	/**
	 * @return the teacherSchoolNick
	 */
	public String getTeacherSchoolNick() {
		return teacherSchoolNick;
	}

	/**
	 * @param teacherSchoolNick
	 *            the teacherSchoolNick to set
	 */
	public void setTeacherSchoolNick(String teacherSchoolNick) {
		this.teacherSchoolNick = teacherSchoolNick;
	}

	/**
	 * @return the createrUserId
	 */
	public String getCreaterUserId() {
		return createrUserId;
	}

	/**
	 * @param createrUserId
	 *            the createrUserId to set
	 */
	public void setCreaterUserId(String createrUserId) {
		this.createrUserId = createrUserId;
	}

	/**
	 * @return the createrUserSchoolId
	 */
	public String getCreaterUserSchoolId() {
		return createrUserSchoolId;
	}

	/**
	 * @param createrUserSchoolId
	 *            the createrUserSchoolId to set
	 */
	public void setCreaterUserSchoolId(String createrUserSchoolId) {
		this.createrUserSchoolId = createrUserSchoolId;
	}

	/**
	 * @return the auditStatus
	 */
	public Integer getAuditStatus() {
		return auditStatus;
	}

	/**
	 * @param auditStatus
	 *            the auditStatus to set
	 */
	public void setAuditStatus(Integer auditStatus) {
		this.auditStatus = auditStatus;
	}

}
